API Specifications for the MFA Log-in Mechanism

If you are configuring Ayla's Multi-Factor Authentication (MFA) for your web or mobile application, please ensure that the log-in mechanism is updated to support this authentication. To do this:

  1. Submit the username and password with the existing sign-in API as normally done (/users/sign_in.json).
  • If MFA is disabled, the log-in process is the same as usual.
  • If MFA is enabled, the user receives a response with the auth_code attribute and mfa_token, and is then redirected to a new page where the user is prompted to enter the auth_code attribute and mfa_token.
  1. Check the response from signing in:
  • If the response code is 401, the code entered is invalid. In this case, the user should start the sign-in process again.

NOTE

If the users have a third-party application, please make sure the applications are updated for MFA before configuring this authentication.

For your reference, following are API examples of the verification/log-in steps above: (Click each to expand the information.)

 

 

 

 

 

See also: Multi-Factor Auth tab.

Please click here to let us know how we're doing. Thank you.